package com.person.mapper;

import com.person.dto.DishDto;
import com.person.pojo.Dish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DishMapper {
    int selectDish(Long id);

    List<DishDto> inquireDishes(String name);

    void delete(@Param("ids") List<Long> ids);

    void add(Dish dish);

    DishDto select(Long id);

    void update(DishDto dishDto);

    List<DishDto> selectDishes(Long id);

    void updateStopStatus(List<Long> ids);

    void updateStartStatus(List<Long> ids);

    int selectStatus(List<Long> ids);
}
